package Java语言.继承;


import com.sun.istack.internal.NotNull;

public class Dad extends Person {
    private String name = "Java语言.继承.Dad";

    public String getName() {
        return name;
    }

    public void setName(String name, @NotNull Object s) {
        this.name = name;
        s.getClass();
    }

    public static void main(String[] args) {
        Person dad = new Dad();
        ((Dad) dad).setName("hello",null);
        System.out.println(dad.getName());
    }
}

